package com.wen.order.api;

import com.wen.commonutils.ordervo.OrderUcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：Win
 * @Date: 2021/6/19 18:45
 * @Description:
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterApi {
    /**
     * 根据用户id查询用户信息
     *
     * @param memberId id
     * @return UcenterMemberOrder
     */
    @GetMapping("/edu/ucenter/service/member/getMemberInfoById/{memberId}")
    OrderUcenterMember getMemberInfoById(@PathVariable("memberId") String memberId);
}
